package ch.fusun.baron.core.service;

import ch.fusun.baron.core.rmi.User;
import ch.fusun.baron.data.DataListener;

/**
 * A listener for account events
 */
public interface UserListener extends DataListener {
	/**
	 * A user logged in
	 * 
	 * @param user
	 *            The user newly logged in
	 */
	public void userLoggedIn(User user);

	/**
	 * A user logged out
	 * 
	 * @param user
	 *            The user newly logged out
	 */
	public void userLoggedOut(User user);

	/**
	 * User has been created
	 * 
	 * @param user
	 *            The newly created user
	 */
	public void userCreated(User user);
}
